package com.dycx.food.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dycx.food.dto.GoodsDTO;
import com.dycx.food.entity.GoodsDO;
import com.dycx.food.vo.GoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsFoodMapper extends BaseMapper<GoodsDO> {
    Page<GoodsVO> getPage(Page<GoodsVO> page, @Param("param") GoodsDTO param);

    Page<GoodsVO> getSearchGoodsPage(Page<GoodsVO> page, @Param("param") GoodsDTO param);

    List<GoodsVO> getGoodsInfoByName(@Param("goodsName") String goodsName);
}
